package com.crm.system.service.couponManager;

import com.alibaba.fastjson.JSONObject;
import com.crm.common.model.DhPageInfo;
import com.crm.model.entity.couponManager.CouponIssued;
import com.crm.model.qo.couponManager.CouponIssuedQO;
import com.crm.model.qo.orderManager.CustomerProductOrderQO;
import com.crm.model.vo.couponManager.CouponIssuedVO;
import com.crm.model.vo.orderManager.CustomerProductOrderVO;
import com.google.gson.JsonObject;

/**
 * @Author renshaorong
 * @Date 2021/11/9
 */
public interface CouponIssuedService {

    /**
     * 客户优惠券分页
     * @param couponIssued
     * @param pageIndex
     * @param pageSize
     * @param sortName
     * @param sortOrder
     * @return
     */
    DhPageInfo<CouponIssuedVO> selectCouponIssuedPageList(CouponIssued couponIssued, Integer pageIndex, Integer pageSize, String sortName, String sortOrder);

    JSONObject addCouponToCustomer(CouponIssuedQO couponIssuedQO);

    DhPageInfo<CustomerProductOrderVO> selectCustomerProductOrder(Integer pageIndex, Integer pageSize,
                                                                  CustomerProductOrderQO customerProductOrderQO,
                                                                  String sortName, String sortOrder);
}

